package cn.erp.app.service;

import java.util.List;

import com.alibaba.druid.sql.parser.SQLParser;

import cn.erp.common.model.SvcAlert;

public class AlertService {
	public static AlertService me = new AlertService();
	private AlertService(){
		
	}
	
	public List<SvcAlert> getAll() {
		return null;
	}
	
	public List<SvcAlert> getAlertInfoWithCondition(long categoryId,String search) {
		String sql = "select * from svc_alert where ";
		if(categoryId!=0L) {
			sql+="categoryId=?";
		}
		if(search!=null) {
		}
		
//		return SvcAlert.dao.find(sql,params);
		return null;
	}
	
	public SvcAlert findbyId(long id) {
		return SvcAlert.dao.findById(id);
	}
	
}
